package com.winshare.saleAssistant.controller;

import com.winshare.saleAssistant.domain.dto.req.ProductInfoFunctionSyncDTO;
import com.winshare.saleAssistant.service.ProductInfoFunctionService;
import com.winshare.saleAssistant.util.LogicResponse;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/sys/product-info/function")
@CrossOrigin
@Api(value = "产品功能管理", description = "产品功能管理")
public class ProductInfoFunctionController {

    private final ProductInfoFunctionService productInfoFunctionService;

    public ProductInfoFunctionController(ProductInfoFunctionService productInfoFunctionService) {
        this.productInfoFunctionService = productInfoFunctionService;
    }

    @PostMapping("/sync")
    @ApiModelProperty(value = "同步全部数据",notes = "同步数据")
    public LogicResponse syncFunction(@RequestBody @Validated ProductInfoFunctionSyncDTO productInfoFunctionSyncDTO) {
        return LogicResponse.success("这个接口按照prd需要调用第三方，待商榷。");
    }
}
